Namespacing everything to /UVa.
[andmenj-acm.git] / UVa / 11339 - Sonnet Rhyme Verifier / 11339.2.cpp
blob8eace94f23ae0f73201c7225d29a180018937211
1 #include <iostream>
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <assert.h>
5 #include <wchar.h>
6 #include <wctype.h>
7 #include <locale.h>
9 using namespace std;
12 int main() {
13 wchar_t a[] = L"áéíóúñ";
14 wchar_t b[] = L"ÁÉÍÓÚÑ";
15 //assert(setlocale(LC_ALL, "en_US.UTF-8") != NULL);
16 //assert(setlocale(LC_ALL, "") != NULL);
18 for (int i=0; i<6; ++i){
19 wprintf(L"el niño %lc in mayúsculas is %lc\n", a[i], towupper(a[i]));
20 wcout << a[i] << " by wcout in caps is " << towupper(a[i]) << endl;
22 wcout << a << endl;
23 wprintf(L"%ls\n", b);
24 puts("vaya mierda");
25 assert(sizeof(wchar_t) == 4);
26 return 0;